#ifndef COMPONENTPOSITION_H
#define COMPONENTPOSITION_H

#include "Component.h"
#include "Ogre.h"



class ComponentPosition : public Component
{
public:
    ComponentPosition(ComponentManager* _parent, ComponentArguments _args);
    virtual ~ComponentPosition();

    virtual void initialize();
    virtual void destroy();

    virtual void saveToXML(TiXmlElement* parentElement);
    virtual void loadFromXML(TiXmlElement* parentElement);

    virtual void update(double timeSinceLastFrame);
    virtual void registerNewComponent(std::string _newComponentName);

    Ogre::Vector3 getPosition();
    void setPosition(Ogre::Vector3 _pos);


protected:
private:

Ogre::Vector3 m_position;

};

#endif // COMPONENTPOSITION_H
